<?php 
use Yii\helpers\Html;
use yii\bootstrap\ActiveForm;
use yii\widgets\LinkPager;
use yii\helpers\Url;
echo $this->render('_centernav');?>
<table border=1>
	<tr>
		<th>头像</th>
		<th>评论内容</th>
		<th>来源</th>
	</tr>
	<?php foreach($comment as $k=>$v){?>
		<tr>
			<td><img src="http://files.bwphp.com/<?php echo $v['user_thumb']?>" alt="" height='25px' width='50px'></td>
			<td><?php echo $v['comment_content']?>
			<p><?php echo date('Y-m-d H:i:s',$v['comment_addtime'])?></p></td>
			<td><a href=""><?php echo $v['laiyuan']?></a></td>
		</tr>
	<?php }?>
</table>
<?php echo LinkPager::widget([
				'pagination' => $pagination,
				'prevPageLabel'=>'上一页',
				'nextPageLabel'=>'下一页',
			]);?>